cmake_minimum_required(VERSION 3.10)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED true)

project(DeviceNetwork)

find_package(async-mqtt5 REQUIRED)
find_package(spdlog REQUIRED)
find_package(sdbus-c++ REQUIRED)
find_package(yaml-cpp REQUIRED)
aux_source_directory(src SOURCE_FILE)

link_libraries(SDBusCpp::sdbus-c++ spdlog::spdlog Async::MQTT5
               yaml-cpp::yaml-cpp)

include_directories(Async::MQTT5)

add_executable(DeviceNetwork ${SOURCE_FILE} run/DeviceNetwork.cpp)

add_executable(mqtt_test run/mqtt_test.cpp)
